package cn.com.dhcc.ddi.task.vo;

import java.util.Date;

import cn.com.dhcc.app.core.annotation.SiColumn;
import cn.com.dhcc.app.core.annotation.SiTable;
import cn.com.dhcc.app.core.base.ModuleFeatureBean;
/**
 * 周期性任务发送频率信息
 * @日期：2014-11-18下午4:49:22
 * @作者：张洪涛
 * @版权所有：东华软件
 * @版本：1.0
 */
@SiTable(name = "t_ddi_task_period")
public class TaskPeriod extends ModuleFeatureBean{
	@SiColumn(isId = true)
	private String id;
	@SiColumn(name = "task_id")
	private String taskId;//所属发送任务
	private String freq;// 指定频率 1 间隔 2每天3 每周4 每月
	@SiColumn(name = "interval_vallue")
	private String intervalVallue;// 指定值
	@SiColumn(name = "cut_off_time")
	private Date cutOffTime;// 截至时间
	private Date mtime;// 最后修改时间
	@SiColumn(name = "execute_time")
	private String executeTime;//任务执行时间
	@SiColumn(name = "execute_type")
	private String executeType;// 执行类型 1立即执行2手动执行2定时发送
	@SiColumn(name = "start_time")
	private Date startTime; //定时任务开始时间
	
	public String getExecuteTime() {
		return executeTime;
	}
	public void setExecuteTime(String executeTime) {
		this.executeTime = executeTime;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getTaskId() {
		return taskId;
	}
	public void setTaskId(String taskId) {
		this.taskId = taskId;
	}
	public String getFreq() {
		return freq;
	}
	public void setFreq(String freq) {
		this.freq = freq;
	}
	public String getIntervalVallue() {
		return intervalVallue;
	}
	public void setIntervalVallue(String intervalVallue) {
		this.intervalVallue = intervalVallue;
	}
	public Date getCutOffTime() {
		return cutOffTime;
	}
	public void setCutOffTime(Date cutOffTime) {
		this.cutOffTime = cutOffTime;
	}
	public Date getMtime() {
		return mtime;
	}
	public void setMtime(Date mtime) {
		this.mtime = mtime;
	}
	
	public String getExecuteType() {
		return executeType;
	}
	public void setExecuteType(String executeType) {
		this.executeType = executeType;
	}
	public Date getStartTime() {
		return startTime;
	}
	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}




	// 指定频率 1 间隔 2每天3 每周4 每月
	public static enum FREQ_TYPE {
		INTERVAL("1","间隔"),
		DAYLY("2","每周"),
		WEEKLY("3","每周"),
		MONTHLY("4","每月");
		private String code;
		private String name;
		
		public String getCode() {
			return code;
		}

		public void setCode(String code) {
			this.code = code;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

		private FREQ_TYPE(String code,String name){
			this.code = code;
			this.name = name;
		}
    }
	
	// 星期
		public static enum WEEK_TYPE {
			MON("1","一"),
			TUE("2","二"),
			WED("2","三"),
			THU("4","四"),
			FRI("5","五"),
			SAT("6","六"),
			SUN("7","日");
			private String code;
			private String name;
			
			public String getCode() {
				return code;
			}

			public void setCode(String code) {
				this.code = code;
			}

			public String getName() {
				return name;
			}

			public void setName(String name) {
				this.name = name;
			}

			private WEEK_TYPE(String code,String name){
				this.code = code;
				this.name = name;
			}
	    }
}
